#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Mikan Job Item Database Toolkit

Mikan Python Web Framework
"""

__author__ = "K.Sonohara"
__status__ = "develop"
__version__ = "0.0.0_36"
__date__    = "2014/01/05"
__license__ = 'LGPL'

# ------------------------------------------------------------
## Import Section
# ------------------------------------------------------------
# Python
import traceback

# BSON
from bson.objectid import ObjectId

# Mikan
from mikan.idt import AbstractMikanItemDBToolkit
from mikan.core import MIKAN

# ------------------------------------------------------------
## Variable Section
# ------------------------------------------------------------
class MIKAN_IDT_JOB(MIKAN):
	pass

# ------------------------------------------------------------
## Function Section
# ------------------------------------------------------------

# ------------------------------------------------------------
## Class Section
# ------------------------------------------------------------
## Mikan Abstract Job IDT
class AbstractMikanJobIDT(AbstractMikanItemDBToolkit, MIKAN_IDT_JOB):

	## 
	# @param itemdb 
	def __init__(self, itemdb):
		super(AbstractMikanJobIDT, self).__init__(itemdb)

	def create_job(self, entitiy):
		jobid = ObjectId().__str__()
		entitiy.jobid = jobid

		self.itemdb.create(entitiy)

	def list_job(self, entitiy):
		return None

	def update_job(self, entitiy):
		pass

	def pop_job(self, entitiyclass):
		pass


# ------------------------------------------------------------
## Main Section
# ------------------------------------------------------------
if __name__ == '__main__':
	pass

# ------------------------------------------------------------
